﻿using System;
namespace 状态模式
{
    public class ContextStateC:AbstractState
    {
        public override void Handle(Context context)
        {
            Console.WriteLine($"当前状态：{GetType()}");
            //改变状态为A
            context.State = new ConcreteStateA();
        }
    }
}
